package com.wcity.manage.common.utils;

import java.util.UUID;

/**
 * Created by zm on 2016/12/23.
 */
public class NoncestrUitl {

    /**
     * 生成nonceStr
     *
     * @return
     */
    public static String nonce() {
        String uuid = UUID.randomUUID().toString();
        uuid = uuid.substring(0, 8) + uuid.substring(9, 13)
                + uuid.substring(14, 18) + uuid.substring(19, 23)
                + uuid.substring(24);
        return uuid;
    }
}
